<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试</title>
    <style>
        .divcss5{width:400px;height:200px;border:1px solid #F00}
    </style>
</head>
<body>

<div class="divcss5">
    <h2>测试单文件上传</h2>
    <form enctype="multipart/form-data" method="post" action="/file/uploadSingleFile">
        文件上传：<input type="file" name="singleFile" /><br>
        <input type="submit" value="文件上传"/><br>
    </form>
</div>

<div class="divcss5">
    <h2>测试多文件上传</h2>
    <form enctype="multipart/form-data" method="post" action="/file/uploadMultiFile">
        文件上传：<input type="file" name="files" multiple /><br>
        <input type="submit" value="文件上传"/><br>
    </form>
</div>

<div class="divcss5">
    <h2>测试结合表单实现文件上传</h2>

    <form enctype="multipart/form-data" method="post" action="/file/addUser">
        username:<input type="text" name="username"><br>
        password:<input type="text" name="password"><br>
        头像：<input type="file" name="photo" /><br>
        证书: <input type="file" name="excelFiles" multiple /><br>
        <input type="submit" value="导入"/><br>
    </form>
</div>

</body>
</html>